import datetime
from applications.extensions import db


class Position(db.Model):
    __tablename__ = 'police_position'
    id = db.Column(db.Integer, primary_key=True, comment="职位id")
    position_name = db.Column(db.String(50), comment="职位名称")
    status = db.Column(db.Integer, comment='状态(1开启,0关闭)')
    remark = db.Column(db.Text, comment="备注")
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
    update_at = db.Column(db.DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')